package com.jingdianjichi.auth.common.enums;

import lombok.Getter;

/*8
 * 删除状态枚举
 */
@Getter
public enum IsDeleteEnum {
    // 已删除
    DELETED(1, "已删除"),
    UN_DELETED(0, "未删除");

    public int code;
    public String desc;
    IsDeleteEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public static IsDeleteEnum getByCode(int code){
        for (IsDeleteEnum value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }

}
